<template>
  <div style="margin-top: 20px">
    <!--  实现我们的录播效果-->
    <el-carousel :interval="1000" height="550px" arrow="always">
      <el-carousel-item v-for="item in imgList" :key="item">
        <img :src="item.idView" class="image" style="width: 100%;height: 100%">
      </el-carousel-item>
    </el-carousel>
<!--<el-car></el-car>-->
  </div>
</template>
<script>
export default {
  name: "headBanner",
  components: {},
  data() {
    return {
      imgList: [
        {id: 0, idView: require('../../static/imgs/1.jpg')},
        {id: 1, idView: require('../../static/imgs/2.jpg')},
        {id: 2, idView: require('../../static/imgs/3.jpg')},
        {id: 3, idView: require('../../static/imgs/4.jpg')},
        {id: 4, idView: require('../../static/imgs/5.jpg')}
      ]
    }
  },
  methods: {}
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>